<template>
  <div class="register">
      <div class="ctx">
            <img src="/imgs/logo-mi.png" alt="" class="logo">
            <h3 class="title">注册小米账号</h3>
            <div class="city">
                <p class="title-two">国家/地区</p>
                <p class="city-input"><input type="text" v-model='city'><span class="iconfont">&#xe601;</span></p>
                <p class="alert">成功注册账号后，国家/地区将不能被修改</p>
            </div>
            <div class="phone">
                <p class="title-two">手机号码</p>
                <input type="tel" v-model='phone'>
            </div>
            <button @click="handleRegister">立即注册</button>
            <p class="usercheck"><input type="checkbox" name="" id="">注册账号即代表您同意并愿意遵守小米 <strong>用户协议</strong> 和 <strong>隐私政策</strong></p>
      </div>
      <login-footer></login-footer>
  </div>
</template>

<script>
import LoginFooter from './components/Footer'
export default {
    name: 'Register',
    data(){
        return{
            city: '',
            phone: ''
        }
    },
    methods: {
        handleRegister(){
            this.axios.post("user/register",{

            })
        }
    },
    components: {
        LoginFooter
    }
}
</script>

<style lang="scss">
    .register{
        background: #eee;
        overflow: hidden;
        .ctx{
            width: 850px;
            height: 565px;
            background: #fff;
            margin: 177px auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            .logo{
                width: 50px;
                height: 50px;
                margin-bottom: 46px;
            }
            .title{
                font-size: 30px;
                font-weight: bold;
                color: #333333;
                line-height: 60px;
                margin-bottom: 42px;
            }
            .title-two{
                font-size: 14px;
                font-weight: bold;
                color: #333333;
                line-height: 30px;
            }
            .city{
                .city-input{
                    width: 332px;
                    height: 42px;
                    border: 1px solid #E5E5E5;
                    position: relative;
                    overflow: hidden;
                    input{
                        width: 280px;
                        height: 42px;
                        display: inline-block;
                        border: none;
                    }
                    .iconfont{
                        display: inline-block;
                        width: 50px;
                        height: 42px;
                        line-height: 42px;
                        border-left: 1px solid #E5E5E5;
                        position: absolute;
                        top:0;
                        right: 0;
                        font-size: 24px;
                        text-align: center;
                        color:#999;
                        cursor: pointer;
                    }
                }
                .alert{
                    font-size: 14px;
                    font-weight: bold;
                    color: #999999;
                    line-height: 30px;
                }
            }
            
            .phone>input{
                width: 332px;
                height: 42px;
            }
            button{
                width: 332px;
                height: 42px;
                font-size: 14px;
                margin-top: 43px;
            }
            .usercheck{
                font-size: 14px;
                font-weight: 400;
                color: #999999;
                line-height: 60px;
                margin-top: 40px;
                input{
                    width: 16px;
                    height: 16px;
                    outline: none;
                    position:relative;
                    top: 4px;
                    margin-right: 5px;
                }
                strong{
                    color: #333;
                    font-weight: 600;
                }
            }
        }
    }

</style>